package com;

import java.io.IOException;

import com.service.OrderService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ConsumerApplication {
	
	public static void main(String[] args) throws IOException {
		ClassPathXmlApplicationContext ioc = new ClassPathXmlApplicationContext("classpath:consumer.xml");
		OrderService orderService = ioc.getBean(OrderService.class);
		orderService.createOrder("userId");
		System.in.read();
	}

}
